fix generating syscall-names.h for loongarch64
authorWeijie Gao <[email protected]>
Sat, 14 Jun 2025 15:01:55 +0000 (23:01 +0800)
committerHauke Mehrtens <[email protected]>
Thu, 19 Jun 2025 20:21:54 +0000 (22:21 +0200)
commitcde025d5baf32e62b485ef9f8ba1e835ba8ece0e
treeb6dca417b160619ddd0bb2efeed288aa5591ece6
parent59d22013f9dd38f60b0f953534601532dd429c28
fix generating syscall-names.h for loongarch64

The <bits/syscall.h> from musl loongarch64 arch contains some
indirect syscall definitions:
 #define __NR3264_fcntl                  25
 #define __NR_fcntl                      __NR3264_fcntl

This will result in incorrect contents generated by make_syscall_h_sh:
 [__NR3264_fcntl] = "fcntl",

To fix this issue, all macros staring with __NR3264_ should be also
copied to the generated syscall-names.h

Signed-off-by: Weijie Gao <[email protected]>
make_syscall_h.sh